

from flask import Blueprint, request

request_blue = Blueprint("request", __name__, url_prefix="/request")


@request_blue.route("/request/", methods=["GET", "POST"])
def get_request():
    pass

    print("--你好呀--------")
    print("url: ", request.url)
    print("base_url: ", request.base_url)
    print("host_url:  ", request.host_url)
    print("path: ", request.path)
    print("remote_addr: ", request.remote_addr)
    print("method: ", request.method)
    print("cookies: ",request.cookies)
    print("headers: ",request.headers)
    print("user_agent: ",request.user_agent)
    print("---的-------get请求--------")
    print("get args",request.args)
    print("get请",request.args.get("name"))


    return "success"

